package com.ruoyi.hospital.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户基础信息对象 customer
 * 
 * @author qichi
 * @date 2023-07-04
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户id */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String name;

    /** 客户年龄 */
    @Excel(name = "客户年龄")
    private Long age;

    /** 性别 默认未知 0女1男 */
    @Excel(name = "性别 默认未知 0女1男")
    private Integer sex;

    /** 客户手机号 */
    @Excel(name = "客户手机号")
    private String phone;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String address;

    /** 用户类型 0普通客户1会员 */
    @Excel(name = "用户类型 0普通客户1会员")
    private Integer customerType;

    /** 会员id */
    @Excel(name = "会员id")
    private Long customerId;

    /** 用户状态 0异常 1 正常 */
    private Integer delFlag;

    /** 邀请人 */
    @Excel(name = "邀请人")
    private Long inviteUserId;

    /** 注册类型 1:门店就诊 2:PC线上问诊 3:QQ 4:WX */
    @Excel(name = "注册类型 1:门店就诊 2:PC线上问诊 3:QQ 4:WX")
    private Integer registrationType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(Integer sex) 
    {
        this.sex = sex;
    }

    public Integer getSex() 
    {
        return sex;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setCustomerType(Integer customerType) 
    {
        this.customerType = customerType;
    }

    public Integer getCustomerType() 
    {
        return customerType;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setInviteUserId(Long inviteUserId) 
    {
        this.inviteUserId = inviteUserId;
    }

    public Long getInviteUserId() 
    {
        return inviteUserId;
    }
    public void setRegistrationType(Integer registrationType) 
    {
        this.registrationType = registrationType;
    }

    public Integer getRegistrationType() 
    {
        return registrationType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("name", getName())
            .append("age", getAge())
            .append("sex", getSex())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("customerType", getCustomerType())
            .append("customerId", getCustomerId())
            .append("delFlag", getDelFlag())
            .append("inviteUserId", getInviteUserId())
            .append("registrationType", getRegistrationType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
